package com.hyd.manage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hyd.common.annotation.Excel;
import com.hyd.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 药品入库对象 tb_medicines
 *
 * @author hwb
 * @date 2025-02-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Medicines extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String drugType;

    /** 药品单位，如片、瓶、盒等 */
    @Excel(name = "药品单位，如片、瓶、盒等")
    private String unit;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /** 药品批准文号 */
    /*@Excel(name = "药品批准文号")
    private String approvalNumber;*/

    /** 药品批次号 */
    @Excel(name = "药品批次号")
    private String batchNumber;

    /** 药品有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "药品有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /** 库存 */
    @Excel(name = "库存数量")
    private Long r_stockQuantity;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private BigDecimal salePrice;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal memberPrice;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String medicineCode;

    /** 进货价格 */
    @Excel(name = "进货价格")
    private BigDecimal purchasePrice;

}
